package cn.yinyu.queue.module.ecg.controller.admin.devmanage.vo;

import cn.yinyu.queue.framework.common.pojo.PageParam;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.yinyu.queue.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备统计 VO")
@Data
@ToString(callSuper = true)
public class DeviceStatisticVO  {

    @Schema(description = "设备编号", example = "5317")
    private String devId;

    @Schema(description = "设备固有编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备固有编号")
    private String devCodeIntrinsic;

    @Schema(description = "设备医院编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备医院编号")
    private String devCodeHosp;

    @Schema(description = "设备科室编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5317")
    @ExcelProperty("设备科室编号")
    private String devCodeDept;

    @Schema(description = "分类名")
    private String category;

    @Schema(description = "品牌")
    private String brand;

    @Schema(description = "型号")
    private String model;

    @Schema(description = "采购日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] purchaseDate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "状态日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate stateDate[];

    /**
     * 0 - 空闲 10 - 使用中 20 - 已遗失
     */
    @Schema(description = "状态")
    private Integer state;

    @Schema(description = "设备数量")
    private Integer devCount;;

}
